package com.lcd.ssm.service;

import com.lcd.ssm.domain.Employee;
import com.lcd.ssm.page.PageResult;
import com.lcd.ssm.query.EmployeeQueryObject;

import java.util.List;

public interface IEmployeeService {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    Employee getEmployeeForLogin(String username, String password);

    PageResult queryForPage(EmployeeQueryObject qo);

    void updateStateByPrimaryKey(Long id);

    List<Long> queryRoleIdByEmployeeId(Long eid);

    List<String> findPermissionStrByEmployeeId(Long id);
}
